package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.RightdetailServicesMapper;
import com.ktgj.customer.domain.RightdetailServices;
import com.ktgj.customer.service.IRightdetailServicesService;

/**
 * 卡权益明细服务中间Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-27
 */
@Service
public class RightdetailServicesServiceImpl implements IRightdetailServicesService 
{
    @Autowired
    private RightdetailServicesMapper rightdetailServicesMapper;

    /**
     * 查询卡权益明细服务中间
     * 
     * @param id 卡权益明细服务中间ID
     * @return 卡权益明细服务中间
     */
    @Override
    public RightdetailServices selectRightdetailServicesById(Long id)
    {
        return rightdetailServicesMapper.selectRightdetailServicesById(id);
    }

    /**
     * 查询卡权益明细服务中间列表
     * 
     * @param rightdetailServices 卡权益明细服务中间
     * @return 卡权益明细服务中间
     */
    @Override
    public List<RightdetailServices> selectRightdetailServicesList(RightdetailServices rightdetailServices)
    {
        return rightdetailServicesMapper.selectRightdetailServicesList(rightdetailServices);
    }

    /**
     * 新增卡权益明细服务中间
     * 
     * @param rightdetailServices 卡权益明细服务中间
     * @return 结果
     */
    @Override
    public int insertRightdetailServices(RightdetailServices rightdetailServices)
    {
        return rightdetailServicesMapper.insertRightdetailServices(rightdetailServices);
    }

    /**
     * 修改卡权益明细服务中间
     * 
     * @param rightdetailServices 卡权益明细服务中间
     * @return 结果
     */
    @Override
    public int updateRightdetailServices(RightdetailServices rightdetailServices)
    {
        return rightdetailServicesMapper.updateRightdetailServices(rightdetailServices);
    }

    /**
     * 批量删除卡权益明细服务中间
     * 
     * @param ids 需要删除的卡权益明细服务中间ID
     * @return 结果
     */
    @Override
    public int deleteRightdetailServicesByIds(Long[] ids)
    {
        return rightdetailServicesMapper.deleteRightdetailServicesByIds(ids);
    }

    /**
     * 删除卡权益明细服务中间信息
     * 
     * @param id 卡权益明细服务中间ID
     * @return 结果
     */
    @Override
    public int deleteRightdetailServicesById(Long id)
    {
        return rightdetailServicesMapper.deleteRightdetailServicesById(id);
    }
}
